extends ../../layout

block content
    .container
        .row
            .col-sm-4.col-sm-offset-4
                form.form-horizontal(method='post', action='/user/login')
                    .form-group
                        label.col-sm-3.control-label(for="username") 用户名
                        .col-sm-9
                            input#username.form-control(type="text", name='name', placeholder="用户名")
                    .form-group
                        label.col-sm-3.control-label(for="password") 密码
                        .col-sm-9
                            input#password.form-control(type="password", name='password', placeholder="密码")
                    .form-group
                        .col-sm-offset-3.col-sm-9
                            .checkbox
                                label
                                    input#remember(type='checkbox', name='remember')
                                    | 记住我
                    .form-group
                        .col-sm-offset-3.col-sm-9
                            a.thirdAuth(href='/auth/github') GitHub
                            a.thirdAuth(href='/auth/qq') QQ
                            a.thirdAuth(href='auth/weixin') 微信
                    .form-group
                        .col-sm-offset-3.col-sm-9
                            span.tip.sr-only.text-danger message
                    .form-group
                        .col-sm-offset-3.col-sm-9
                            button#loginBtn.btn.btn-primary(type="button") 登录

    script(src='/libs/md5/md5.min.js', type='text/javascript')
    script(src='/js/md5.js', type='text/javascript')
    script(src='/js/login.js', type='text/javascript')